Skip to content

Use C99 in testgem to trigger issue with stdbool#440

Merged
larskanis merged 1 commit into
masterfrom
c99
May 18, 2025
Merged

Use C99 in testgem to trigger issue with stdbool#440
larskanis merged 1 commit into
masterfrom
c99

Conversation

@larskanis

Copy link
Copy Markdown
Member

This is to test for the following issue: #439

Error is:

In file included from C:/Ruby34-x64/include/ruby-3.4.0/ruby/defines.h:74,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby/ruby.h:25,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby.h:38,
                 from conftest.c:1:
C:/msys64/ucrt64/include/stralign.h: In function 'ua_CharUpperW': C:/Ruby34-x64/include/ruby-3.4.0/ruby/backward/2/bool.h:31:15: error: 'true' undeclared (first use in this function)
   31 | # define TRUE true
      |               ^~~~
In file included from C:/msys64/ucrt64/include/windows.h:114,
                 from C:/msys64/ucrt64/include/winsock2.h:23,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby/win32.h:36,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby/internal/dosish.h:38,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby/defines.h:78:
C:/msys64/ucrt64/include/stralign.h:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | /**

This is to test for the following issue:
  #439

Error is:

In file included from C:/Ruby34-x64/include/ruby-3.4.0/ruby/defines.h:74,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby/ruby.h:25,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby.h:38,
                 from conftest.c:1:
C:/msys64/ucrt64/include/stralign.h: In function 'ua_CharUpperW':
C:/Ruby34-x64/include/ruby-3.4.0/ruby/backward/2/bool.h:31:15: error: 'true' undeclared (first use in this function)
   31 | # define TRUE true
      |               ^~~~
In file included from C:/msys64/ucrt64/include/windows.h:114,
                 from C:/msys64/ucrt64/include/winsock2.h:23,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby/win32.h:36,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby/internal/dosish.h:38,
                 from C:/Ruby34-x64/include/ruby-3.4.0/ruby/defines.h:78:
C:/msys64/ucrt64/include/stralign.h:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | /**
@larskanis larskanis merged commit a9e5376 into master May 18, 2025
6 of 12 checks passed
@larskanis larskanis deleted the c99 branch May 18, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant